package com.ruoyi.user.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.matchmaker.domain.TbMatchmaker;

/**
 * 管理用户对象 tb_user
 * 
 * @author ruoyi
 * @date 2025-07-29
 */
public class TbUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 性别： 0-未知，1-男，2-女 */
    @Excel(name = "性别： 0-未知，1-男，2-女")
    private Long gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 头像URL */
    @Excel(name = "头像URL")
    private String avatarUrl;

    /** 粉丝数 */
    @Excel(name = "粉丝数")
    private Long fan;

    /** 被关注总数 */
    @Excel(name = "被关注总数")
    private Long countFollow;

    /** 被赞总数 */
    @Excel(name = "被赞总数")
    private Long countLike;

    /** 用户角色：1-普通用户，2-VIP用户，3-红娘，4-vip+红娘 */
    @Excel(name = "用户角色：1-普通用户，2-VIP用户，3-红娘，4-vip+红娘")
    private Integer userRole;

    /** 注册来源： 1-手机号，2-微信，3-QQ */
    @Excel(name = "注册来源： 1-手机号，2-微信，3-QQ")
    private Integer registerSource;

    /** 第三方平台ID */
    @Excel(name = "第三方平台ID")
    private String openId;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;

    /** 最后登录IP */
    @Excel(name = "最后登录IP")
    private String lastLoginIp;

    /** 账号状态：0-冻结，1-正常，2-注销 */
    @Excel(name = "账号状态：0-冻结，1-正常，2-注销")
    private Integer accountStatus;

    /** 是否实名认证：0-否，1-是 */
    @Excel(name = "是否实名认证：0-否，1-是")
    private Integer isVerified;

    /** 是否VIP：0-否，1-是 */
    @Excel(name = "是否VIP：0-否，1-是")
    private Integer isVip;

    /** VIP过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "VIP过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date vipExpireTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    /** 红娘信息信息 */
    private List<TbMatchmaker> tbMatchmakerList;
    private List<TbUserProfile> tbUserProfileList;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }

    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setFan(Long fan) 
    {
        this.fan = fan;
    }

    public Long getFan() 
    {
        return fan;
    }

    public void setCountFollow(Long countFollow) 
    {
        this.countFollow = countFollow;
    }

    public Long getCountFollow() 
    {
        return countFollow;
    }

    public void setCountLike(Long countLike) 
    {
        this.countLike = countLike;
    }

    public Long getCountLike() 
    {
        return countLike;
    }

    public void setUserRole(Integer userRole) 
    {
        this.userRole = userRole;
    }

    public Integer getUserRole() 
    {
        return userRole;
    }

    public void setRegisterSource(Integer registerSource) 
    {
        this.registerSource = registerSource;
    }

    public Integer getRegisterSource() 
    {
        return registerSource;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }

    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }

    public void setLastLoginIp(String lastLoginIp) 
    {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp() 
    {
        return lastLoginIp;
    }

    public void setAccountStatus(Integer accountStatus) 
    {
        this.accountStatus = accountStatus;
    }

    public Integer getAccountStatus() 
    {
        return accountStatus;
    }

    public void setIsVerified(Integer isVerified) 
    {
        this.isVerified = isVerified;
    }

    public Integer getIsVerified() 
    {
        return isVerified;
    }

    public void setIsVip(Integer isVip) 
    {
        this.isVip = isVip;
    }

    public Integer getIsVip() 
    {
        return isVip;
    }

    public void setVipExpireTime(Date vipExpireTime) 
    {
        this.vipExpireTime = vipExpireTime;
    }

    public Date getVipExpireTime() 
    {
        return vipExpireTime;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public List<TbMatchmaker> getTbMatchmakerList()
    {
        return tbMatchmakerList;
    }

    public void setTbMatchmakerList(List<TbMatchmaker> tbMatchmakerList)
    {
        this.tbMatchmakerList = tbMatchmakerList;
    }
    public List<TbUserProfile> getTbUserProfileList() {
        return tbUserProfileList;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("gender", getGender())
            .append("birthDate", getBirthDate())
            .append("avatarUrl", getAvatarUrl())
            .append("fan", getFan())
            .append("countFollow", getCountFollow())
            .append("countLike", getCountLike())
            .append("userRole", getUserRole())
            .append("registerSource", getRegisterSource())
            .append("openId", getOpenId())
            .append("registerTime", getRegisterTime())
            .append("lastLoginTime", getLastLoginTime())
            .append("lastLoginIp", getLastLoginIp())
            .append("accountStatus", getAccountStatus())
            .append("isVerified", getIsVerified())
            .append("isVip", getIsVip())
            .append("vipExpireTime", getVipExpireTime())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("tbMatchmakerList", getTbMatchmakerList())
            .append("tbUserProfileList", getTbUserProfileList())
            .toString();
    }
}
